package com.easylinkin.linkappapi.concretestrength.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.concretestrength.dto.ConcreteStrengthDetailDTO;
import com.easylinkin.linkappapi.concretestrength.entity.ConcreteStrengthDetail;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * ConcreteStrengthDetail表数据库访问层
 *
 * @author zhengwen
 * @date 2022/10/23
 */
public interface ConcreteStrengthDetailMapper extends BaseMapper<ConcreteStrengthDetail> {


    /**
     * 查询分页
     *
     * @param page        分页参数对象
     * @param appConcreteStrengthDetail 过滤参数对象
     * @return 查询分页结果
     */
    IPage<ConcreteStrengthDetail> selectPage(Page page, @Param("appConcreteStrengthDetail") ConcreteStrengthDetail appConcreteStrengthDetail);

    /**
     * 查询单条
     *
     * @param id 主键id
     * @return 查询结果
     */
    ConcreteStrengthDetail getOneById(@Param("id") Serializable id);

    /**
     * 根据条件查询详情带测试记录List
     * @param detail 条件对象
     * @return 详情带测试记录List
     */
    List<ConcreteStrengthDetailDTO> selectDtoListByDetail(ConcreteStrengthDetail detail);
}

